namespace BizTalk.BuildGenerator.UI.Navigation
{
    public class MoveNextResult
    {
        private bool _CanMoveNext = false;
        private bool _ContainsError = false;
        private string _ErrorMessage;

        public string ErrorMessage
        {
            get { return _ErrorMessage; }
        }

        public bool ContainsError
        {
            get { return _ContainsError; }
        }

        public bool CanMoveNext
        {
            get { return _CanMoveNext; }
            set { _CanMoveNext = value; }
        }

        public void AddError(string message)
        {
            _ContainsError = true;
            _ErrorMessage = message;
        }
    }
}